<?php
session_start();
if (!$_SESSION['user']) 
    {
        header("Location: index.php");
    }
?>
<!DOCTYPE HTML>
<html>
	<head>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<title>Upload CSV file</title>

	<!--- CSS --->
	<link rel="stylesheet" href="include/style.css" type="text/css" />
	<link rel="icon" type="image/png" href="include/images/favicon.png" />
	</head>

<body>
		<div id="container">
                    <form action="upload.php" method="post" enctype="multipart/form-data" >	
                    <div class="welcome">
				<div class="welcome-user">Welcome <?php echo $_SESSION['user']; ?> </div>
				<div class="welcome-text">
                                    <input type="file" name="file"><br>
                                    <label>(Upload only csv file*)</label>
                                </div>
                                    <div class="up_submit">
                                    <input type="submit" name="submit" id="fl_submit" value="upload">
                                </div>
                                <div class="home"><a href="logout.php">HOME</a></div>
			</div>
                    </form>
		</div>
<?php include "include/footer.php" ?>
</body>
</html>
